USE [master]
GO

/****** Object:  Database [SecondBrain]    Script Date: 01/30/2012 10:54:25 ******/
IF  EXISTS (SELECT name FROM sys.databases WHERE name = N'SecondBrain')
DROP DATABASE [SecondBrain]
GO

USE [master]
GO

/****** Object:  Database [SecondBrain]    Script Date: 01/30/2012 10:54:25 ******/
CREATE DATABASE [SecondBrain] ON  PRIMARY 
( NAME = N'SYS', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_SYS.mdf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [DATA] 
( NAME = N'DATA', FILENAME = N'D:\Temp\Data\SQL\SecondBrainC_DATA.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [FTS] 
( NAME = N'FTS', FILENAME = N'D:\Temp\Data\SQL\FTS.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ), 
 FILEGROUP [HIST] 
( NAME = N'HIST', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_HIST.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [IDX] 
( NAME = N'IDX', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_IDX.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [LOOKUP] 
( NAME = N'LOOKUP', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_LOOKUP.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [MEMO] 
( NAME = N'MEMO', FILENAME = N'D:\Temp\Data\SQL\SeconBrain_MEMO.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%), 
 FILEGROUP [TMP] 
( NAME = N'TMP', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_TMP.ndf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
 LOG ON 
( NAME = N'SecondBrain_Log', FILENAME = N'D:\Temp\Data\SQL\SecondBrain_Log.ldf' , SIZE = 4056KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
GO

ALTER DATABASE [SecondBrain] SET COMPATIBILITY_LEVEL = 100
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [SecondBrain].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO

ALTER DATABASE [SecondBrain] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [SecondBrain] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [SecondBrain] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [SecondBrain] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [SecondBrain] SET ARITHABORT ON 
GO

ALTER DATABASE [SecondBrain] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [SecondBrain] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [SecondBrain] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [SecondBrain] SET AUTO_UPDATE_STATISTICS OFF 
GO

ALTER DATABASE [SecondBrain] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [SecondBrain] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [SecondBrain] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [SecondBrain] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [SecondBrain] SET QUOTED_IDENTIFIER ON 
GO

ALTER DATABASE [SecondBrain] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [SecondBrain] SET  DISABLE_BROKER 
GO

ALTER DATABASE [SecondBrain] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [SecondBrain] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [SecondBrain] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [SecondBrain] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [SecondBrain] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [SecondBrain] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [SecondBrain] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [SecondBrain] SET  READ_WRITE 
GO

ALTER DATABASE [SecondBrain] SET RECOVERY SIMPLE 
GO

ALTER DATABASE [SecondBrain] SET  MULTI_USER 
GO

ALTER DATABASE [SecondBrain] SET PAGE_VERIFY TORN_PAGE_DETECTION  
GO

ALTER DATABASE [SecondBrain] SET DB_CHAINING OFF 
GO



